<table class="stock-business-table">
  <thead>
    <tr>
      <th *ngFor="let header of tableHeaders">{{header.label}}</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <tr [ngClass]="getEntryClass(entry)" *ngFor="let entry of dataList; trackBy: trackBySymbol">
      <td [ngClass]="header.classes || []" *ngFor="let header of tableHeaders">{{entry[header.key] | vtrade: header.key}}</td>
      <td class="operators">
        <button (click)="handleOperate(entry, 0)">
          加仓
        </button>
        <button (click)="handleOperate(entry, 1)">
          减仓
        </button>
      </td>
    </tr>
  </tbody>
</table>